local xiongshu = fk.CreateSkill{
    name = "jinld__xiongshu",
}

Fk:loadTranslationTable{
    ["jinld__xiongshu"] = "凶竖",
    [":jinld__xiongshu"] = "出牌阶段限一次，你可以将所有手牌交给一名其它角色，然后你令该角色视为使用一张指定其攻击范围内所有角色为目标的【杀】，"..
    "若此【杀】造成过伤害，你回复1点体力。",

    ["#jinld__xiongshu"] = "凶竖：你可以将所有手牌交给一名其他角色",

    ["$jinld__xiongshu1"] = "怀志拥权，谁敢不服？",
    ["$jinld__xiongshu2"] = "天下凶凶，由我一人。",
}

xiongshu:addEffect("active",{
    anim_type = "offensive",
    prompt = "#jinld__xiongshu",
    can_use = function (self, player)
        return player:usedSkillTimes(xiongshu.name, Player.HistoryPhase) == 0 and not player:isKongcheng()
    end,
    card_filter = Util.FalseFunc,
    target_num = 1,
    target_filter = function (self, player, to_select, selected, selected_cards)
        return #selected == 0 and to_select ~= player
    end,
    on_use = function (self, room, effect)
        local player = effect.from
        local to = effect.tos[1]
        room:moveCardTo(player:getCardIds("h"), Card.PlayerHand, to, fk.ReasonGive, xiongshu.name, nil, false, player)
        local targets = table.filter(room.alive_players, function (p) return to:inMyAttackRange(p) and to:canUseTo(Fk:cloneCard("slash"), p) end)
        if #targets == 0 or to.dead then return end
        room:sortByAction(targets)
        local use = room:useVirtualCard("slash", nil, to, targets, xiongshu.name, true)
        if use and use.damageDealt and player:isWounded() and player:isAlive() then
            player:broadcastSkillInvoke(xiongshu.name)
            room:notifySkillInvoked(player, xiongshu.name, "support")
            room:recover{
                who = player,
                num = 1,
            }
      end
    end
})

return xiongshu